﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OptixDotNet.Math;
using RayDen.Library.Core.Primitives;

namespace RayDen.Optix.Engine.Components
{
    public static class Extensions
    {

        public static Vector ToVec(this Vector3 v3)
        {
            return new Vector(v3.X, v3.Y, v3.Z);
        }

        public static Vector3 ToVec3(this Vector v3)
        {
            return new Vector3(v3.X, v3.Y, v3.Z);
        }


        public static Vector3 ToVec3(this Point v3)
        {
            return new Vector3(v3.X, v3.Y, v3.Z);
        }


        public static Vector3 ToVec3(this Normal v3)
        {
            return new Vector3(v3.X, v3.Y, v3.Z);
        }
    }
}
